const SYSTEM_INFO = uni.getSystemInfoSync()
// 获取状态栏的高度
export const getStatusBarHeight = () => SYSTEM_INFO.statusBarHeight || 15
// 获取标题栏的高度
export const getTitleBarHeight = () => {
	// #ifdef MP
	const {
		top,
		height
	} = uni.getMenuButtonBoundingClientRect()
	return height + (top - getStatusBarHeight()) * 2
	// #endif
	// #ifndef MP
	return 40
	// #endif
}
// 获取导航栏的高度
export const getNavBarHeight = () => getStatusBarHeight() + getTitleBarHeight()

// 获取抖音左侧图片偏移距离
export const getLeftIcon = () => {
	// #ifdef MP-TOUTIAO
	const {
		leftIcon: {
			left,
			width
		}
	} = tt.getCustomButtonBoundingClientRect()
	return left + parseInt(width)
	// #endif

	// #ifndef MP-TOUTIAO
	return 0
	// #endif


}